package com.itheima.utils;

/**
 * @author ：why
 * @description：
 * @version:
 */
public class StringNameUtils {
    private static final String regx = "[`~!@#$^&*()=|{}':;,\\[\\].<>《》/?！￥…（）—【】‘；：”“。，、？]";
    public static boolean checkName(String name) {
        return name != null && !"".equals(name) && !name.contains(" ") && !"".matches(regx);
    }
}
